import { createSelector } from 'reselect';
import { initialState } from './reducer';

const select{{ properCase name }}Domain = state => state.{{ camelCase name }} || initialState;

const makeSelect{{ properCase name }} = () => createSelector(select{{ properCase name }}Domain, subState => subState);

export default makeSelect{{ properCase name }};
export { select{{ properCase name }}Domain, makeSelect{{ properCase name }} };
